var comm=require("../module.js")
//获取应用实例
const app = getApp()
Page({
  data: {
    interVal:2000,
    imgUrls: [
      // "../images/1_02.gif", "../images/1_02.gif", "../images/1_02.gif"
    ],
    content:[]//案例
  },
  onLoad:function(){
    // 案例中心
    comm.ajax("Xcxflower/getAnliList","",res=>{
      console.log(res.data.data)

      this.setData({
        content: this.data.content.concat(res.data.data)
      })

    },"GET")

   //lunbo
    comm.ajax("Xcxflower/getXcxLunbotu","", res => {
      console.log(res)
      this.setData({
        imgUrls: res.data.data
      })

    },"GET")
  },
  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
    console.log("到底了")
    // this.onLoad()
  },
  
})
